package dto;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BidRequest {

    @NotNull(message = "投标金额不能为空")
    @DecimalMin(value = "100.0", message = "投标金额至少100万")
    private BigDecimal amount;

    @Override
    public String toString() {
        return "BidRequest{" + "amount=" + amount + '}';
    }
}
